/******************************************************************************
 * 
 * Announce: CSharpKit, Basic algorithms, components and definitions.
 *           Copyright (C) ShenYongchen.
 *           All rights reserved.
 *   Author: 申永辰.郑州 (shenyczz@163.com)
 *  WebSite: http://gitee.com/shenyczz/csharp_csk
 *
 * THIS CODE IS LICENSED UNDER THE MIT LICENSE (MIT).
 * THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF 
 * ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
 * IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
 * PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
 * 
******************************************************************************/

using System;
using System.Runtime.InteropServices;
using CSharpKit.Convertions;

namespace CSharpKit.Native.ECCODES
{
    partial class eccodes
    {

        /// <summary>
        /// 原型: const char* codes_get_error_message(int code) <br/>
        /// 功能:  <br/>
        /// 状态: ok <br/>
        /// </summary>
        /// <param name="code">CA is CHARACTER*1</param>
        /// <returns> </returns>
        [DllImport(_dllname_, CharSet = CharSet.Ansi, EntryPoint = "codes_get_error_message")]
        internal extern static IntPtr codes_get_error_message_(int code);
        public static string codes_get_error_message(int code)
        {
            var p = eccodes.codes_get_error_message_(code);
            var s = KConverter.IntPtrConverter.ToString(p);
            return s;
        }

        /// <summary>
        /// <para>功能: </para>
        /// <para>说明: </para>
        /// </summary>
        /// <param name="type"> </param>
        /// <returns> </returns>
        /// <remarks>
        /// 原型: const char* codes_get_type_name(int type);
        /// </remarks>
        [DllImport(_dllname_, CharSet = CharSet.Auto, EntryPoint = "codes_get_type_name")]
        public static extern IntPtr codes_get_type_name(int type);
        




        // {{END}}
    }

}
